<?php

ini_set('xdebug.var_display_max_data', '2048');
ini_set('xdebug.var_display_max_depth', '15');

include '../core/core.php';

CCore::Using('labs.webmail');

$oWebMailAccount = new CCoreLabsWebMailAccount(C_WEBMAIL_INC_MAIL_PROTOCOL_IMAP, C_WEBMAIL_OUT_MAIL_PROTOCOL_SMTP,
	'test@localhost',
	'u-server', 143, 'test@localhost', 'p12345',
	'u-server', 26, 'test@localhost', 'p12345', 1);

$oWebMail = new CCoreLabsWebMail($oWebMailAccount);


$sFolderName = 'INBOX';
$sFileName = 'c:/1.eml';

var_dump($oWebMail->AppendMailFromFile($sFolderName, $sFileName));